import * as YvanUI from 'yvan-ui-wotu'

interface Ref {
    t1: YvanUI.Text,
    t2: YvanUI.Text
}

const React = YvanUI.React
const {Card} = YvanUI.Antd
const Observer = YvanUI.Observer
const _ = YvanUI.lodash

export default class Simple2 extends YvanUI.Scope<void, Ref> {

    main = this.$$({
        t1: '',
        t2: ''
    })

    vjson = {
        title: '极简-表格2',
        items: [
            {
                view: 'table',
            }
        ]
    }

    onRender() {
        window['Simple2'] = this

        // YvanUI.autorun(() => {
        //     console.log('raise!!')
        //     this.refs.t2.visible = (this.main.t1 !== '')
        //     this.main.t2 = this.main.t1 + ' ++'
        //
        // }, {name: 'Simple onRender'})
    }
}